<?php

namespace App\Http\Controllers\admin\Menu;

use App\Http\Controllers\Controller;
use App\Models\Menu;
use App\Server\ApiService;
use Illuminate\Http\Request;

class MenuController extends Controller
{
    public function menuList()
    {
        $data = Menu::all();
        if ($data)
        {
            return ApiService::success('菜单列表获取成功',$data);
        } else {
            return ApiService::fail('菜单列表获取失败');
        }
    }
}
